<?php
	include_once(realpath(dirname(__FILE__)) . "/../../../fonctions/authplugins.php");
	if (function_exists("autorisation")) autorisation("dc_newsletter_basic");
	include_once(realpath(dirname(__FILE__)) . '/Dc_newsletter_basic.class.php');
?>

<div id="contenu_int">
	<?php include (realpath(dirname(__FILE__)) . '/pages/header.php'); ?>
	<?php if(isset($_GET['page']))
		$page=$_GET['page'];
	else
		$page="";
	switch($page){
		case "":
			echo '<img src="../client/plugins/'. $nom .'/images/accueil.png" alt="" title=""  width="978" height="300" />';
			break;
		default:
			echo '<img src="../client/plugins/'. $nom .'/images/accueil.png" alt="" title=""  width="978" height="300" />';
			break;
		case "$page":
	  		if (file_exists(realpath(dirname(__FILE__)) . '/pages/'. $page .'_menu.php')) {
	  			include (realpath(dirname(__FILE__)) . '/pages/'. $page .'_menu.php');
	  		}
	  		include (realpath(dirname(__FILE__)) . '/pages/'. $page .'.php');
	  		break;
	} ?>
	<?php include (realpath(dirname(__FILE__)) . '/pages/footer.php'); ?>
</div>
</body>
</html>